package com.shiwaixiangcun.customer.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shiwaixiangcun.customer.R;
import com.shiwaixiangcun.customer.entity.FeeItem;

import java.util.List;

/**
 * Author   Administrator
 * Date     2018/4/12
 * Desc     eg
 *
 * @author Administrator
 */
public class AdapterFeeItem extends BaseQuickAdapter<FeeItem, BaseViewHolder> {
    public AdapterFeeItem(@Nullable List<FeeItem> data) {
        super(R.layout.item_fee_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, FeeItem item) {
        helper.setText(R.id.tv_item_type, item.getItemName());
        helper.setText(R.id.tv_item_value, "￥" + item.getUnclearedAmountLabel());

    }
}
